package com.comm.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author mis_wu
 * @date 2022/6/18 15:59
 * @todo 统一返回结果枚举类
 */
@AllArgsConstructor
@NoArgsConstructor
public enum ResultEnum {

    RESULT_SUCCESS(200,"接口返回成功"),
    RESULT_ERROR(300,"接口返回错误");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
